package com.exam.system.dao;

import com.exam.system.entity.ExamMenu;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ExamMenuDao {

    // 查一级菜单
    List<ExamMenu> findFirstMenus();

    // 查二级菜单
    List<ExamMenu> findSecondMenus(int pid);

    List<Integer> findMenuIdByRoleId(Integer roleId);
    List<Integer> findAllMenuId();

    void insertOneMenu(ExamMenu examMenu);

    void insertTwoMenu(ExamMenu examMenu);

    int updateById(ExamMenu examMenu);

    void deleteById(Integer id);
}
